<%@page import="org.jcms.model.Customer"%>
<%@page import="org.jcms.uitils.CookieUtil"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<%
	Customer customer = (Customer) session.getAttribute("customer");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="../../css/skin.css">
<link rel="stylesheet" type="text/css"
	href="../../css/easy-ui-themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="../../css/easy-ui-themes/icon.css">
<script type="text/javascript" src="../../js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="../../js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../../js/common.js"></script>

<script type="text/javascript" src="../../js/CustomerrBookSearch.js"></script>

<script type="text/javascript">
$(function(){
showTip("提示","目前购物车内还有<%=CookieUtil.getCookieCount(
					"bookTrolley" + customer.getCustomerId(),
					request.getContextPath() + "/customer", 30 * 24 * 3600,
					request, response)%>件物品，请注意");
});

</script>
</head>
<body class="body">
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="17" valign="top" background="../../images/mail_leftbg.gif"><img
				src="../../images/left-top-right.gif" width="17" height="29" /></td>
			<td valign="top" background="../../images/content-bg.gif">
				<table width="100%" height="31" border="0" cellpadding="0"
					cellspacing="0" class="left_topbg" id="table2">
					<tr>
						<td height="31"><div class="titlebt">图书查询和...</div></td>
					</tr>
				</table>
			</td>
			<td width="16" valign="top"
				background="../../images/mail_rightbg.gif"><img
				src="../../images/nav-right-bg.gif" width="16" height="29" /></td>
		</tr>

		<tr>
			<td valign="bottom" background="../../images/mail_leftbg.gif"></td>
			<td valign="top" style="height:450px;background-color: white;">
				<!-- 这个是主要div -->
				<div style="margin-top:30px">
					<div>筛选：</div>
					<table>
						<tr>
							<td>根据ISBN查找:</td>
							<td><input type="text" id="searchByISBN" /></td>
							<td><input type="button" value="查找"
								onclick="buildGridView('list_data', '书籍列表','../CustomerGetBooks.do?type=3&bookIsbn='+$('#searchByISBN').val());" />
							</td>
						</tr>

						<tr>
							<td>根据书名模糊查找:</td>
							<td><input type="text" id="searchByBookName" /></td>
							<td><input type="button" value="查找"
								onclick="buildGridView('list_data', '书籍列表','../CustomerGetBooks.do?type=2&bookName=' + $('#searchByBookName').val() );" />
							</td>
						</tr>

						<tr>
							<td colspan="3"><input type="button" value="显示全部"
								onclick="buildGridView('list_data', '书籍列表','../CustomerGetBooks.do?type=0');" />
							</td>
						</tr>

					</table>
					<br /> <br /> <a href="ShowCart.jsp"> <span
						style="font-weight: bolder;" id="shoppingcart">购物车(<%=CookieUtil.getCookieCount(
					"bookTrolley" + customer.getCustomerId(),
					request.getContextPath() + "/customer", 30 * 24 * 3600,
					request, response)%>)</span> </a>
					<table id="list_data" cellspacing="0" cellpadding="0">
						<thead>
							<tr>
								<th field="bookIsbn">ISBN</th>
								<th field="bookName">书名</th>
								<th field="bookAuthor">作者</th>
								<th field="bookPublisher">出版社</th>
								<th field="bookPrice">单价</th>

							</tr>

						</thead>

					</table>
					<img src="../../images/loading.gif"
						style="display:none;height:25px;width:25px;" id="LoadingImg" />
					<script type="text/javascript">
						buildGridView('list_data', '书籍列表',
								'../CustomerGetBooks.do?type=0');
					</script>
				</div></td>
			<td valign="bottom" background="../../images/mail_rightbg.gif">&nbsp;
			</td>
		</tr>


		<tr>
			<td valign="bottom"><img src="../../images/buttom_left2.gif"
				width="17" height="17" /></td>
			<td background="../../images/buttom_bgs.gif"><img
				src="../../images/buttom_bgs.gif" width="17" height="17"></td>
			<td valign="bottom"><img src="../../images/buttom_right2.gif"
				width="16" height="17" /></td>
		</tr>

	</table>
	<div id="dialogid"></div>
	<div id="win"></div>
</body>
</html>



